/*
 * @Author: yangzonglong
 * @Date: 2021-05-07 13:15:50
 * @version: v1.0.0
 * @Descripttion: 
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-05-11 14:06:03
 * @Auditor: 
 */
import React from 'react';
import style from './style.module.scss';
interface IconButtonProps {
  icon: string;
  text: string;
  onClick(): void
}

export default ({ icon, text, onClick }: IconButtonProps) => {
  return (
    <p className={style.box} onClick={onClick}>
      {/* <Icon icon={icon}/> */}
      <span>{text}</span>
    </p>
  )
}